<div class="eventCategories view">
	<h2>
		<?php  __('EventCategory');?>
	</h2>
	<dl>
		<?php $i = 0; $class = ' class="altrow"';?>
		<dt <?php if ($i % 2 == 0) echo $class;?>>
			<?php __('Id'); ?>
		</dt>
		<dd <?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $eventCategory['EventCategory']['id']; ?>
			&nbsp;
		</dd>
		<dt <?php if ($i % 2 == 0) echo $class;?>>
			<?php __('Parent Id'); ?>
		</dt>
		<dd <?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $eventCategory['EventCategory']['parent_id']; ?>
			&nbsp;
		</dd>
		<dt <?php if ($i % 2 == 0) echo $class;?>>
			<?php __('Name'); ?>
		</dt>
		<dd <?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $eventCategory['EventCategory']['name']; ?>
			&nbsp;
		</dd>
		<dt <?php if ($i % 2 == 0) echo $class;?>>
			<?php __('Slug'); ?>
		</dt>
		<dd <?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $eventCategory['EventCategory']['slug']; ?>
			&nbsp;
		</dd>
		<dt <?php if ($i % 2 == 0) echo $class;?>>
			<?php __('User'); ?>
		</dt>
		<dd <?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $html->link($eventCategory['User']['id'], array('controller' => 'users', 'action' => 'view', $eventCategory['User']['id'])); ?>
			&nbsp;
		</dd>
		<dt <?php if ($i % 2 == 0) echo $class;?>>
			<?php __('Created'); ?>
		</dt>
		<dd <?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $eventCategory['EventCategory']['created']; ?>
			&nbsp;
		</dd>
		<dt <?php if ($i % 2 == 0) echo $class;?>>
			<?php __('Modified'); ?>
		</dt>
		<dd <?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $eventCategory['EventCategory']['modified']; ?>
			&nbsp;
		</dd>
		<dt <?php if ($i % 2 == 0) echo $class;?>>
			<?php __('Description'); ?>
		</dt>
		<dd <?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $eventCategory['EventCategory']['description']; ?>
			&nbsp;
		</dd>
		<dt <?php if ($i % 2 == 0) echo $class;?>>
			<?php __('Event Count'); ?>
		</dt>
		<dd <?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $eventCategory['EventCategory']['event_count']; ?>
			&nbsp;
		</dd>
		<dt <?php if ($i % 2 == 0) echo $class;?>>
			<?php __('ChildrenCount'); ?>
		</dt>
		<dd <?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $eventCategory['EventCategory']['childrenCount']; ?>
			&nbsp;
		</dd>
		<dt <?php if ($i % 2 == 0) echo $class;?>>
			<?php __('Parent Node Name'); ?>
		</dt>
		<dd <?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $eventCategory['EventCategory']['parent_node_name']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<ul>
		<li><?php echo $html->link(__('Edit EventCategory', true), array('action' => 'edit', $eventCategory['EventCategory']['id'])); ?>
		</li>
		<li><?php echo $html->link(__('Delete EventCategory', true), array('action' => 'delete', $eventCategory['EventCategory']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $eventCategory['EventCategory']['id'])); ?>
		</li>
		<li><?php echo $html->link(__('List EventCategories', true), array('action' => 'index')); ?>
		</li>
		<li><?php echo $html->link(__('New EventCategory', true), array('action' => 'add')); ?>
		</li>
		<li><?php echo $html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?>
		</li>
		<li><?php echo $html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?>
		</li>
		<li><?php echo $html->link(__('List Events', true), array('controller' => 'events', 'action' => 'index')); ?>
		</li>
		<li><?php echo $html->link(__('New Event', true), array('controller' => 'events', 'action' => 'add')); ?>
		</li>
	</ul>
</div>
<div class="related">
	<h3>
		<?php __('Related Events');?>
	</h3>
	<?php if (!empty($eventCategory['Event'])):?>
	<table cellpadding="0" cellspacing="0">
		<tr>
			<th><?php __('Id'); ?></th>
			<th><?php __('Title'); ?></th>
			<th><?php __('Event From'); ?></th>
			<th><?php __('Event To'); ?></th>
			<th><?php __('Description'); ?></th>
			<th><?php __('Venue'); ?></th>
			<th><?php __('Event Site'); ?></th>
			<th><?php __('Event Cost'); ?></th>
			<th><?php __('Status'); ?></th>
			<th><?php __('Slug'); ?></th>
			<th><?php __('User Id'); ?></th>
			<th><?php __('Created'); ?></th>
			<th><?php __('Modified'); ?></th>
			<th><?php __('Event Category Id'); ?></th>
			<th><?php __('Is Popular'); ?></th>
			<th><?php __('Popularized Date'); ?></th>
			<th><?php __('Comment Count'); ?></th>
			<th><?php __('Views Count'); ?></th>
			<th><?php __('Whosin Count'); ?></th>
			<th><?php __('Soundscool Count'); ?></th>
			<th class="actions"><?php __('Actions');?></th>
		</tr>
		<?php
		$i = 0;
		foreach ($eventCategory['Event'] as $event):
		$class = null;
		if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
			?>
		<tr <?php echo $class;?>>
			<td><?php echo $event['id'];?></td>
			<td><?php echo $event['title'];?></td>
			<td><?php echo $event['event_from'];?></td>
			<td><?php echo $event['event_to'];?></td>
			<td><?php echo $event['description'];?></td>
			<td><?php echo $event['venue'];?></td>
			<td><?php echo $event['event_site'];?></td>
			<td><?php echo $event['event_cost'];?></td>
			<td><?php echo $event['status'];?></td>
			<td><?php echo $event['slug'];?></td>
			<td><?php echo $event['user_id'];?></td>
			<td><?php echo $event['created'];?></td>
			<td><?php echo $event['modified'];?></td>
			<td><?php echo $event['event_category_id'];?></td>
			<td><?php echo $event['is_popular'];?></td>
			<td><?php echo $event['popularized_date'];?></td>
			<td><?php echo $event['comment_count'];?></td>
			<td><?php echo $event['views_count'];?></td>
			<td><?php echo $event['whosin_count'];?></td>
			<td><?php echo $event['soundscool_count'];?></td>
			<td class="actions"><?php echo $html->link(__('View', true), array('controller' => 'events', 'action' => 'view', $event['id'])); ?>
				<?php echo $html->link(__('Edit', true), array('controller' => 'events', 'action' => 'edit', $event['id'])); ?>
				<?php echo $html->link(__('Delete', true), array('controller' => 'events', 'action' => 'delete', $event['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $event['id'])); ?>
			</td>
		</tr>
		<?php endforeach; ?>
	</table>
	<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $html->link(__('New Event', true), array('controller' => 'events', 'action' => 'add'));?>
			</li>
		</ul>
	</div>
</div>
